package com.lin.repository;

import com.lin.dataobject.Role;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2017-11-08.
 */
public interface RoleRepository extends JpaRepository<Role,Integer>{
    List<Role> findAll(Specification<Role> specification);

    Page<Role> findAll(Specification<Role> specification, Pageable pageable);

    Long count(Specification<Role> specification);

    List<Role> findAllByStatus(Integer status);
}
